<template>
  <div class="index-box">
    <a-tabs :activeKey="activeKey" @change="item => {activeKey = item}">
      <a-tab-pane tab="已迁入" key="1">
        <moved-in v-if="activeKey == 1" />
      </a-tab-pane>
      <a-tab-pane tab="待审核" key="2" forceRender>
        <checking v-if="activeKey == 2" />
      </a-tab-pane>
      <a-tab-pane tab="未通过" key="3">
        <no-pass v-if="activeKey == 3" />
      </a-tab-pane>
    </a-tabs>
  </div>
</template>

<script>
  import movedIn from './moved_in'
  import checking from './checking'
  import noPass from './nopass'
  export default {
    name: 'data_household_index',
    data() {
      return {
        activeKey:'1'
      }
    },
    components:{ movedIn,checking,noPass },
  }
</script>

<style lang="less" scoped>
  .index-box{
    background: #ffffff;
    padding: 25px;
    box-sizing: border-box;
  }
</style>